package top.aigoo.project01.entity.dto;

import top.aigoo.project01.entity.Product;
import top.aigoo.project01.entity.WechatAuth;
import top.aigoo.project01.enums.WechatAuthStateEnum;

import java.util.List;

/**
 * @Description: 微信用户
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/9/10 22:14
 */
public class WechatAuthExecution {
    //状态
    private int state;
    //结果
    private String stateInfo;
    // 数量
    private int count;

    private WechatAuth wechatAuth;

    private List<WechatAuth> wechatAuthList;

    /**
     * 无参构造器
     */
    public WechatAuthExecution() {
    }

    //创建失败使用的构造器
    public WechatAuthExecution(WechatAuthStateEnum wechatAuthStateEnum) {
        this.state = wechatAuthStateEnum.getState();
        this.stateInfo = wechatAuthStateEnum.getStateInfo();
    }

    //执行增、删、改，成功后使用的构造器
    public WechatAuthExecution(WechatAuthStateEnum wechatAuthStateEnum, WechatAuth wechatAuth) {
        this.state = wechatAuthStateEnum.getState();
        this.stateInfo = wechatAuthStateEnum.getStateInfo();
        this.wechatAuth = wechatAuth;
    }
    //执行查找，成功后使用的构造器
    public WechatAuthExecution(WechatAuthStateEnum wechatAuthStateEnum, List<WechatAuth> wechatAuthList) {
        this.state = wechatAuthStateEnum.getState();
        this.stateInfo = wechatAuthStateEnum.getStateInfo();
        this.wechatAuthList = wechatAuthList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public WechatAuth getWechatAuth() {
        return wechatAuth;
    }

    public void setWechatAuth(WechatAuth wechatAuth) {
        this.wechatAuth = wechatAuth;
    }

    public List<WechatAuth> getWechatAuthList() {
        return wechatAuthList;
    }

    public void setWechatAuthList(List<WechatAuth> wechatAuthList) {
        this.wechatAuthList = wechatAuthList;
    }
}
